home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / bin / dh_autotools-dev_updateconfig < prev    next >
Encoding:
Text File  |  2010-03-06  |  1.3 KB  |  58 lines

  1. #!/usr/bin/perl -w
  2.  
  3. =head1 NAME
  4.  
  5. dh_autotools-dev_updateconfig - update B<config.sub> and B<config.guess>
  6.  
  7. =cut
  8.  
  9. use strict;
  10. use Debian::Debhelper::Dh_Lib;
  11.  
  12. =head1 SYNOPSIS
  13.  
  14. B<dh_autotools-dev_updateconfig> [S<I<debhelper options>>]
  15.  
  16. =head1 DESCRIPTION
  17.  
  18. dh_autotools-dev_updateconfig replaces all occurances of B<config.sub> and B<config.guess>
  19. in the source tree by the up-to-date versions found in the autotools-dev package.
  20. The original files are backed up under the names B<config.sub.dh-orig> and
  21. B<config.guess.dh-orig>.
  22.  
  23. =head1 EXAMPLES
  24.  
  25. dh_autotools-dev_updateconfig is usually called indirectly in a rules file via the
  26. dh command.
  27.  
  28.     %:
  29.         dh --with autotools_dev $@
  30.  
  31. It can also be direcly called at the start of the build (or configure)
  32. rule.
  33.  
  34.     build:
  35.         dh_autotools-dev_updateconfig
  36.         ./configure
  37.         $(MAKE)
  38.  
  39. =cut
  40.  
  41. init();
  42.  
  43. complex_doit('for c_g in `find -type f -name config.guess` ; do if ! test -e $c_g.dh-orig ; then mv -f $c_g $c_g.dh-orig ; cp -f /usr/share/misc/config.guess $c_g ; fi ; done');
  44. complex_doit('for c_s in `find -type f -name config.sub`   ; do if ! test -e $c_s.dh-orig ; then mv -f $c_s $c_s.dh-orig ; cp -f /usr/share/misc/config.sub   $c_s ; fi ; done');
  45.  
  46. =head1 SEE ALSO
  47.  
  48. L<debhelper(7)>, L<dh(1)>.
  49.  
  50. This program is meant to be used together with debhelper.
  51.  
  52. =head1 AUTHOR
  53.  
  54. Fabian Greffrath <fabian+debian@greffrath.com>
  55.  
  56. =cut
  57.  
  58.